import request from "./request.js"

export default {
	//获取视频列表
	getVideoAlarmList(params) {
		return request('/video/videoAlarmLog/listAlarmLogs', 'GET', params)
	},
	//获取当前视频报警详情
	getVideoAlarmDetail(params) {
		return request("/video/videoAlarmLog/getVideoAlarmLogDetail", 'GET', params)
	},
	//视频报警的推送记录
	getVideoAlarmPushLog(params) {
		return request("/device/pushLog/listPushLogs", 'GET', params)
	},
	//视频报警记录列表
	getVideoAlarmTimeList(params) {
		return request('/video/videoAlarmLog/listAlarmRecord', 'GET', params)
	},
	//萤石云报警视频
	getTalkVideo(params) {
		return request('/video/videodeviceApp/getTalkUrl', 'GET', params)
	},
	//报警视频
	getLiveUrlById(params) {
		return request('/video/videodevice/getLiveUrlById', 'GET', params)
	},
	//报警视频操作
	handleVideo(params) {
		return request(
			'/video/videodevice/control/start',
			'POST',
			params
		)
	},
	stophandleVideo(params) {
		return request(
			'/video/videodevice/control/stop',
			'POST',
			params
		)
	}
}
